﻿@model IEnumerable<IFPRJ.EF.Model.News>

@{
    ViewBag.Title = "List";
    string skin = IFPRJ.Web.MvcApplication.GetSkins();
    Layout = "~/Themes/" + skin + "/Areas/Admin/Views/Shared/_Layout.cshtml";
}


<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="Navitable">
    <tr>
            <td style="PADDING-LEFT: 14px;"><a href="News_list.aspx" class="topnavichar" title="所有表内的新闻信息">全部</a>&nbsp;┊&nbsp;
            <a href="@Url.Action("Create","News")" class="topnavichar"><font color="red">添加</font></a>&nbsp;┊&nbsp;
            <a id="LnkBtnAuditing" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnAuditing&#39;,&#39;&#39;)">已审核</a>&nbsp;┊&nbsp;
            <a id="LnkBtnUnAuditing" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnUnAuditing&#39;,&#39;&#39;)">未审核</a>&nbsp;┊&nbsp;
            <a id="LnkBtnContribute" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnContribute&#39;,&#39;&#39;)">投稿</a>&nbsp;┊&nbsp;
            <a id="LinkBtnLock" class="topnavichar" href="javascript:__doPostBack(&#39;LinkBtnLock&#39;,&#39;&#39;)">锁定</a>&nbsp;┊&nbsp;
            <a id="LinkBtnUnLock" class="topnavichar" href="javascript:__doPostBack(&#39;LinkBtnUnLock&#39;,&#39;&#39;)">开放</a>&nbsp;┊&nbsp;
            <a id="LnkBtnCommend" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnCommend&#39;,&#39;&#39;)">推荐</a>&nbsp;┊&nbsp;
            <a id="LnkBtnTop" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnTop&#39;,&#39;&#39;)">置顶</a>&nbsp;┊&nbsp;
            <a id="LnkBtnHot" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnHot&#39;,&#39;&#39;)">热点</a>&nbsp;┊&nbsp;
            <a id="LnkBtnPic" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnPic&#39;,&#39;&#39;)">图片</a>&nbsp;┊&nbsp;
            <a id="LnkBtnSplendid" class="topnavichar" href="javascript:__doPostBack(&#39;LnkBtnSplendid&#39;,&#39;&#39;)">精彩</a>&nbsp;┊&nbsp;
            <span  onclick="document.getElementById('opld').style.display='block';" style="cursor:pointer;">更多</span>&nbsp;┊&nbsp;
            <select name="DdlSite" onchange="javascript:setTimeout(&#39;__doPostBack(\&#39;DdlSite\&#39;,\&#39;\&#39;)&#39;, 0)" language="javascript" id="DdlSite" style="width:88px;">
	            <option selected="selected" value="0">资讯中心</option>
            </select>
        </td>
    </tr>
</table>

<div align="left"  style="PADDING-LEFT: 14px;">
    <a href="javascript:Recycle(-1)" class="topnavichar">删除</a>┊
    <a href="javascript:Delete(-1)" class="topnavichar">彻底删除</a>┊
    <a href="javascript:CheckStat1()" class="topnavichar" title="审核选定的新闻">审核</a>┊
    <a href="javascript:Lock()" class="topnavichar">锁定</a>┊
    <a href="javascript:UNLock()" class="topnavichar">解锁</a>┊
    <a href="javascript:ResetOrder()" class="topnavichar">重置权重</a>┊
    <a href="javascript:ClickHandler('BnMove')" class="topnavichar">移动</a>┊
    <a href="javascript:ClickHandler('BnCopy')" class="topnavichar">复制</a>┊
    <a href="javascript:ToOld()" class="topnavichar">归档</a>┊
    <a href="javascript:AddToJS(-1)" class="topnavichar" title="把选定的新闻加入自由JS">JS</a>┊
    <a href="javascript:AddToSpecial(-1)" class="topnavichar" title="把选定的新闻加入专题">专题</a>┊
    <a href="javascript:ClickHandler('BnProperty')" class="topnavichar" title="批量设置属性">属性</a>┊
    <label id="ClassNewsIndex" runat="server" ><span title="选择了栏目才能生成栏目索引" style="color:#999999">索引</span></label>┊
    <span id="deltable"><span style="color:#999999" title="需要选择栏目">清空数据</span></span><span id="isMakeHTML">┊
    <a href="javascript:makeFilesHTML()" class="topnavichar" title="生成选定的新闻的静态页面">生成静态文件</a></span>┊
    <label id="XMLFile"><span title="选择了栏目才能生成栏目的XML文件" style="color:#999999">XML</span></label>┊
    <label id="ClassNewsIndex"><span title="选择了栏目才能生成栏目索引" style="color:#999999">索引</span></label>┊
    <label id="ClassRefresh"><span title="选择了栏目才能生成栏目的新闻列表" style="color:#999999">刷新</span></label>
    <span style="display:none;">┊<a href="javascript:clearFiles()" class="topnavichar">清理附件</a></span>
</div>

@using (Html.BeginForm())
{
<table id="tablist" width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
    <tr class="TR_BG_list">
        <th align="left" class="sysmain_navi"><input name="Checkboxc" type="checkbox" onclick="javascript:selectAll(this.form,this.checked);" />全选</th>
        <th align="center" class="sysmain_navi">操作</th>
        <th align="center" class="sysmain_navi">
            标题
        </th>
        <th align="center" class="sysmain_navi">
            类型
        </th>
        <th align="center" class="sysmain_navi">
            创建用户
        </th>
        <th align="center" class="sysmain_navi">
            创建日期
        </th>
        <th align="center" class="sysmain_navi">
            修改日期
        </th>
    </tr>

@foreach (var item in Model)
{
   
    <tr class="TR_BG_list"  onmouseover="overColor(this)" onmouseout="outColor(this)">

        <td>
        <input type="checkbox" id=@item.ID name="checkedId" value="@item.ID" />

        </td>
        <td>
            <a href="@Url.Action("Update", "News", new { id = item.ID })"><img src="@Url.Content("~/Content/blue/Admin/images/del.gif")" alt="删除到回收站" border="0"/></a> 
            <a href="@Url.Action("Delete", "News", new { id = item.ID })"><img src="@Url.Content("~/Content/blue/Admin/images/dels.gif")" alt="彻底删除" border="0"/></a> 
            <a href="@Url.Action("Edit", "News", new { id = item.ID })"><img src="@Url.Content("~/Content/blue/Admin/images/re.gif")" alt="编辑" border="0"/></a> 
            <a href="@Url.Action("Details", "News", new { id = item.ID })"><img src="@Url.Content("~/Content/blue/Admin/images/review.gif")" alt="预览" border="0"/></a>

        </td>
        <td class="list_link" width="70%" >
            <a href="@Url.Action("Edit", "News", new { id = item.ID })">@item.Title_Long</a>
        </td>
        <td>
            @item.News_CatoryID
        </td>
        <td>
            @item.User_firstAdd
        </td>
        <td>
            @String.Format("{0:g}", item.Date_Post)
        </td>
        <td>
            @String.Format("{0:g}", item.Date_Lastupdated)
        </td>
        
    </tr>
    
    
}

</table>
}




